﻿using BCEntity.OA.TeamWorks.TaskRecord;
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;

namespace BCData.OA.TeamWorks.TaskRejectReplyRecord
{
    /// <summary>
    /// 工作流任务驳回回复记录
    /// </summary>
    public interface ITaskRejectReplyRecordData
    {
        /// <summary>
        /// 添加驳回回复记录
        /// </summary>
        /// <param name="recordEntity">驳回回复记录</param>
        /// <returns></returns>
        Task<TaskRejectReplyRecordEntity> Add(TaskRejectReplyRecordEntity recordEntity);
        /// <summary>
        /// 获取工作流任务驳回回复
        /// </summary>
        /// <param name="workflowActivityInstanceId">工作流活动实例Id</param>
        /// <param name="taskRejectRecordId">任务驳回记录Id</param>
        /// <returns></returns>
        Task<IEnumerable<TaskRejectReplyRecordEntity>> GetEntities(long workflowActivityInstanceId,long taskRejectRecordId);
    }
}
